package com.example.a79273.shandianban.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;

import java.util.List;

/**
 * Created by 79273 on 2016/9/2.
 */
public class EmojiAdapter extends BaseAdapter {

    private List<ImageView> mData;
    private Context mContext;

    public EmojiAdapter(List<ImageView> data, Context context) {
        mContext = context;

    }

    private void initImageView() {
        for (int i = 0; i < mData.size(); i++) {

        }
    }

    @Override
    public int getCount() {
        return mData == null ? 0 : mData.size();
    }

    @Override
    public ImageView getItem(int position) {
        return mData.get(position);
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        convertView = mData.get(position);
        return convertView;
    }
}
